function statudRen(e) {
	var status = [ {
		id : 1,
		text : '已申请'
	}, {
		id : 2,
		text : '已通过'
	}, {
		id : 3,
		text : '已结单'
	}, {
		id : 4,
		text : '已抢单'
	} ];
	for (var i = 0, l = status.length; i < l; i++) {
		var g = status[i];
		if (g.id == e.value)
			return g.text
	}
	return "-";
}

function timeRen(e) {
	if (e.value == '' || e.value == null)
		return "-";
	return dateFormat(e.value, 'isoDate');
}

function tipTimeRen(e) {
	if (e.value == '' || e.value == null)
		return "-";
	return dateFormat(e.value, 'tipTime');
}

function parseNull(e) {
	if (e == '' || typeof(e) == "undefined")
		return "-";
	return e;
}

function areaRen(e) {
	if (e.value == '' || e.value == null)
		return "-";
	if (e.value == 0)
		return "国别名称";
	if (e.value == 1)
		return "省份名称";
	if (e.value == 2)
		return "市名称";
	if (e.value == 3)
		return "区名称";
}

function defaultFlagRen(e) {
	if (e.value == 1)
		return "是";
	else(e.value == 0)
		return "否";
	return "-";
}

function orderStatusRen(e) {
	if (e.value == 1)
		return "已抢单";
	else(e.value == 2)
		return "已完成";
	return "-";
}

function productTypeRen(e) {
	
	if (e.value == 1)
		return "商抵贷";
	if (e.value == 2)
		return "赎楼贷(个人)";
	if (e.value == 3)
		return "赎楼贷(企业)";
	if (e.value == 4)
		return "尾款贷";
	if (e.value == 5)
		return "房易贷";
	if (e.value == 6)
		return "装修贷";
	
	return "-";
}

function provinceRen(e) {
	if (e.value == '' || e.value == null)
		return "-";
	return getCityName(e.value, 1);
}

function cityRen(e) {
	if (e.value == '' || e.value == null)
		return "-";
	return getCityName(e.value, 2);
}

function districtRen(e) {
	if (e.value == '' || e.value == null)
		return "-";
	return getCityName(e.value, 3);
}

function getCityName(id, type) {
	var retStr = "-";
	$.ajax({
		url : "/city/getName",
		data : {
			"id" : id,
			"type" : type
		},
		dataType : "json",
		type : "post",
		async : false,
		success : function(data) {
			if (data.code == 0)
				retStr = data.data;
			else
				retStr = "-";
		},
		error : function(jqXHR, textStatus, errorThrown) {
			alert(jqXHR.responseText);
		}
	});
	return retStr;
}

function houseStatudRen(e) {
	if (e.value == '' || e.value == null)
		return "-";
	if (e.value == 1)
		return "待审核";
	if (e.value == 2)
		return "已通过";
	if (e.value == 3)
		return "未通过";
	
	return "-";
}

function userTypeRen(e) {
	if (e.value == '' || e.value == null)
		return "-";
	if (e.value == 1)
		return "用户";
	if (e.value == 2)
		return "经纪人";
	return "-";
}

function creditRen(e){
	if (e.value == '' || e.value == null)
		return "-";
	if (e.value == 1)
		return "是";
	if (e.value == 2)
		return "否";
	return "-";
}

function incomeRen(e){
	if (e.value == '' || e.value == null)
		return "-";
	if (e.value == 1)
		return "受薪(上班族)";
	if (e.value == 2)
		return "自雇(个人/企业主)";
	return "-";
}